var res = [{
    name: '济南',
    value: [118, 36.4],
    obcity: [118, 36.4]  // 自定义数据
}]
var mapChart = echarts.init(document.getElementById('map-wrap'));
// mapChart的配置
var option = {
    geo: {
        map: 'china',
        itemStyle: { // 定义样式
            normal: { // 普通状态下的样式
                borderColor: '#fff',
                areaColor: '#fff'
            },
            emphasis: { // 高亮状态下的样式
                areaColor: '#fff',
            }
        },
        emphasis: {
            label: {
                show: false
            }
        },
        regions: [
            {
                name: '广西',
                itemStyle: {
                    areaColor: '#82A0F3',
                },
                emphasis: {
                    itemStyle: {
                        areaColor: '#82A0F3',
                    }
                }

            }, {
                name: '福建',
                itemStyle: {
                    areaColor: '#82A0F3',
                },
                emphasis: {
                    itemStyle: {
                        areaColor: '#82A0F3',
                    }
                }

            },
            {
                name: '山东',
                itemStyle: {
                    areaColor: '#82A0F3',
                },
                emphasis: {
                    itemStyle: {
                        areaColor: '#82A0F3',
                    }
                }

            },
            {
                name: '广东',
                itemStyle: {
                    areaColor: '#C4D3FC',
                },
                emphasis: {
                    itemStyle: {
                        areaColor: '#C4D3FC',
                    }
                }

            },
            {
                name: '江西',
                itemStyle: {
                    areaColor: '#C4D3FC',
                },
                emphasis: {
                    itemStyle: {
                        areaColor: '#C4D3FC',
                    }
                }
            },
            {
                name: '湖南',
                itemStyle: {
                    areaColor: '#C4D3FC',
                },
                emphasis: {
                    itemStyle: {
                        areaColor: '#C4D3FC',
                    }
                }
            },
            {
                name: '湖北',
                itemStyle: {
                    areaColor: '#C4D3FC',
                },
                emphasis: {
                    itemStyle: {
                        areaColor: '#C4D3FC',
                    }
                }
            },
            {
                name: '安徽',
                itemStyle: {
                    areaColor: '#C4D3FC',
                },
                emphasis: {
                    itemStyle: {
                        areaColor: '#C4D3FC',
                    }
                }
            },
            {
                name: '浙江',
                itemStyle: {
                    areaColor: '#C4D3FC',
                },
                emphasis: {
                    itemStyle: {
                        areaColor: '#C4D3FC',
                    }
                }
            },
            {
                name: '江苏',
                itemStyle: {
                    areaColor: '#C4D3FC',
                },
                emphasis: {
                    itemStyle: {
                        areaColor: '#C4D3FC',
                    }
                }
            },
            {
                name: '辽宁',
                itemStyle: {
                    areaColor: '#C4D3FC',
                },
                emphasis: {
                    itemStyle: {
                        areaColor: '#C4D3FC',
                    }
                }
            },
            {
                name: '吉林',
                itemStyle: {
                    areaColor: '#C4D3FC',
                },
                emphasis: {
                    itemStyle: {
                        areaColor: '#C4D3FC',
                    }
                }
            },
            {
                name: '北京',
                itemStyle: {
                    areaColor: '#C4D3FC',
                },
                emphasis: {
                    itemStyle: {
                        areaColor: '#C4D3FC',
                    }
                }
            }
        ]
    },
    series: [
        {
            name: 'one',
            type: 'effectScatter',
            coordinateSystem: 'geo',
            data: res,
            symbol: 'image://./image/location.png',
            symbolSize: [17, 22],
            showEffectOn: 'emphasis',
            rippleEffect: {
                brushType: 'stroke'
            },
            hoverAnimation: false,
            itemStyle: {
                normal: {
                    color: '#35a165',
                    shadowBlur: 0,
                    shadowColor: '#35a165'
                }
            },
            zlevel: 1
        },
    ]
};
mapChart.setOption(option);
window.onresize = mapChart.resize